package com.example.ivos.geofence.pojo.vo;

import com.example.ivos.vehicle.pojo.vo.VehicleVO;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class GeofenceVO {
    @ApiModelProperty(value = "围栏id",required = true)
    private Long id;
    @ApiModelProperty(value = "围栏名称",required = true)
    private String name;
    @ApiModelProperty(value = "围栏状态",required = true)
    private String status;
    @ApiModelProperty(value = "围栏位置数据",required = true)
    private String position;
    @ApiModelProperty(value = "创建时间",required = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;
    //下面三个属性会在车辆分配时使用:需要查对应围栏下的车辆绑定信息
    @ApiModelProperty(value = "围栏绑定车辆总数",required = true)
    private Integer totalNum;
    @ApiModelProperty(value = "围栏可用车辆数",required = true)
    private Integer availableNum;
    @ApiModelProperty(value = "围栏绑定车辆列表",required = true)
    private List<VehicleVO> vehicleList;
}
